Cycle Policy Level-03 Activity Execution Stats
Cycle Test Criteria
12.2.1 - Cycle performance test was conducted for Policy level processing. Cycle benchmark tests were executed to identify and verify the significant improvements or degradations in this current release.
The performance plan includes varied configuration for Policy level transactions. Cycle tests were conducted on 5,000,000 policy data-set with ~50,000,000 pending activities to process. The scenarios picked for cycle performance testing includes Term and VDA PIT policies consisting of various activities matching the real time activity processing. The chosen scenarios in creating master policy data-set were close to production like policy contracts and plans.
Server Properties
Cycle.Properties - Cycle Client
-
Batch Size:
-
Keep batch size larger in the range of 5K-10K or even more, if heap is not being compromised. Remember heap should be at least 20% free.
-
cycle.batchSize is the maximum number of Cycle tasks that will process in the Cycle Grid. Consider the following:
-
Min must be
-
Batch Size = sum of threads allocated to cycle agents (example: If we have 4 Cycle agents with 50 threads each, then Batch size will be 200).
-
To ensure that the threads are always running, set the Batch Size to twice the number of threads in the Cycle Grid and then multiply it with the group size.
-
-
-
The limitation on the number of tasks running in the cluster is dependent on the available memory in the cluster, not the thread pool sizes. The number of threads in the grid is only a theoretical estimate of how many tasks will be running at one time in the grid. Increasing the batchSize has the added benefit of reducing locking in the database when retrieving new tasks, which will increase performance. Setting the batchSize to 1000, 10000 or more is possible, depending on the memory in the cluster.
-
-
Cache Processing threads: Coherence Concurrent provides a facility to dispatch tasks, either a Runnable or a Callable, to a Coherence cluster for execution. Executors that actually execute the submitted tasks are configured on each cluster member by defining one or more named executors within a cache configuration resource. We have set it to 50 threads.
-
Cycle Group Size:
-
It determines the number of Cycle work items (Policies or Clients) to group together and execute on a single thread in the cluster.
-
The groupSize has an impact on the number of tasks that are submitted to the grid for processing. If the batchSize is set to 10000, and the groupSize is set to 10, then 1000 actual tasks will be submitted to the grid for processing, each task containing 10 work items to be completed. Consider the groupSize value when determining the batchSize.
-
Increase this value in order to group together tasks and speed up task submission and processing. The grid will process 10000 work items grouped in sets of 10 faster than 10000 individual work items.
-
Keep Group Size lower, usually under 30. The group size will group activities for a single thread submission.
-
-
Cycle Period:
-
cycle.period is the number of seconds that the Cycle Agent will wait before checking for additional work.
-
Set it higher in order to avoid pinging the database too frequently for work. Frequent trips to the database, especially across multiple Cycle Agents, can impact performance.
-
Set it low enough that you do not starve the Cycle Agent. If the threads in the Cycle Agent run out of work, they will not do anything until cycle.period expires and work is checked again.
-
Keep this property lower, usually set to 5 seconds. This will let Cycle sleep for 5 seconds and retry replenishing grid every 5 seconds
-
Cycle.Properties - Cycle Web
-
Application Mode: PRODUCTION
-
Application Resource Cache Timeout: -1
Cycle Hardware Specs
Cycle on MSSQL DB
Specs
| Parameter | Value |
|---|---|
| SQL Server version | Microsoft SQL Server 2022 Developer Edition, 16.0.4185.3 |
| Operating system | Oracle Linux 9.5 |
| Logical CPU count | 32 |
| Physical memory | 200.94 GB |
| Max server memory | 2,147,483,647 MB (effectively unlimited) |
| Min server memory | 16 MB |
| Max degree of parallelism | 8 |
| Cost threshold for parallelism | 50 |
| Max worker threads | 0 (automatic) |
| User connections | 0 (automatic) |
| Optimize for ad hoc workloads | ON |
| Backup compression default | ON |
| Recovery model | SIMPLE |
| Compatibility level | 140 |
| Page verify | TORN_PAGE_DETECTION |
| Auto-create statistics | ON |
| Auto-update statistics | ON |
| Async statistics update | ON |
| Read committed snapshot | ON |
|
Application Server Specs |
|
|---|---|
|
No. of OCPUs |
16 |
|
No. of Computes (VMs) |
2 |
|
No. Of Cycle Agents (JVMs) |
8 ( 4 in each VM) |
|
JVM Specs |
|
|---|---|
|
Heap size |
6 GB |
|
GC |
G1GC |
|
Cycle Specs |
|
|---|---|
|
cycle.period |
5 |
|
cycle.batchSize |
24000 |
|
cycle.groupSize |
30 |
|
Coherence Specs |
|
|
cycle.thread.count ( in coherence cache file ) |
50 |
|
total thread count |
400 → (50 * 8 as there are 8 cycle nodes) |
|
executor |
fixed |
|
name |
Single-Cache |
|
Data Specs - Before Running Cycle |
|
|---|---|
|
Policy Volume |
5M |
|
Activity Volume |
50M |
DB connection pool size
|
# |
Data Source Name |
Parameters |
|---|---|---|
|
1 |
ADMINSERVERDS |
Initial Capacity = 100 Maximum Capacity = 100 Minimum Capacity = 100 |
| 2 | ADMINSERVERSEARCHDS |
Initial Capacity = 50 Maximum Capacity = 50 Minimum Capacity = 50 |
| 3 | ADMINSERVERRESOURCEDS |
Initial Capacity = 10 Maximum Capacity = 10 Minimum Capacity = 10 |
| 4 | ADMINSERVERREADONLYDS |
Initial Capacity = 100 Maximum Capacity = 100 Minimum Capacity = 100 |
| Business Day Processing | ||
|---|---|---|
| Transaction Type | Plan Name | Count |
| InitialPremium | Variable Deferred Annuity | 1 |
| Premium | Guaranteed Level Premium Term | 7 |
| CoverageCalculation | Guaranteed Level Premium Term | 1969 |
| AnniversaryProcessing | Variable Deferred Annuity | 2727 |
| AutoTransfer | Variable Deferred Annuity-PIT T-Y | 64269 |
| AutoTransfer | Variable Deferred Annuity-PIT | 99160 |
| Issue | Variable Deferred Annuity-PIT | 176124 |
| AutoPayStart | Variable Deferred Annuity-PIT | 176124 |
| SystematicWithdrawalStart | Variable Deferred Annuity-PIT | 176124 |
| Commission | Variable Deferred Annuity-PIT | 176124 |
| InitialPremium | Variable Deferred Annuity-PIT | 176124 |
| Submit | Variable Deferred Annuity-PIT | 178038 |
| WaiverDeactivate | Guaranteed Level Premium Term | 1017979 |
| BankDraftStart | Guaranteed Level Premium Term | 1017981 |
Performance Results
Note: Please note that above mentioned results are purely based on internal test scenarios, internal transaction configurations, SQL and hardware tuning. The results may vary depending on customer's own configuration, data volumes, hardware specifications and db and application server tuning.
CPU Utilization of DB
CPU Utilization of Applications:

Memory Utilization of DB
Memory Utilization of Applications